package com.ngm.tea.tea.entity;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 商品实例实体
 * @author zjw
 * @version 1.0
 * @date 2017-01-03 16:18:48
 *
 */
@JsonIgnoreProperties(value = {"goods","id"}) 
public class Foods {
	/** 商品大类 */
	private Goods goods;
	
	/** 标识 */
	private Long id;
	
	/** 名称 */
	private String name;
	
	/** 特价 */
	private String price;
	
	/** 原价 */
	private String oldPrice;
	
	/** 描述 */
	private String description;
	
	/** 销售数量 */
	private String sellCount;
	
	/** 等级 */
	private String rating;
	
	/** 信息 */
	private String info;
	
	/** 商品评论 */
	@JsonProperty("ratings")
	private List<Ratings> ratingss = new ArrayList<Ratings>(0);
	
	/** 头像 */
	private String icon;
	
	/** 配图 */
	private String image;
	
	public Foods() {
	}
	
	public Goods getGoods() {
		return this.goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}
	
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public String getIcon() {
		return this.icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}
	
	public String getOldPrice() {
		return this.oldPrice;
	}

	public void setOldPrice(String oldPrice) {
		this.oldPrice = oldPrice;
	}
	
	public String getPrice() {
		return this.price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getImage() {
		return this.image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	
	public String getRating() {
		return this.rating;
	}

	public void setRating(String rating) {
		this.rating = rating;
	}
	
	public String getSellCount() {
		return this.sellCount;
	}

	public void setSellCount(String sellCount) {
		this.sellCount = sellCount;
	}
	
	public String getInfo() {
		return this.info;
	}

	public void setInfo(String info) {
		this.info = info;
	}
	
	public List<Ratings> getRatingss() {
		return ratingss;
	}

	public void setRatingss(List<Ratings> ratingss) {
		this.ratingss = ratingss;
	}
	
}